import config from "@/config"
import http from "@/utils/request"

export default {
	add: {
		url: `${config.API_URL}/comment/saveComment`,
		name: "添加评论",
		post: async function(data){
			return await http.post(this.url, data);
		}
	},
	edit: {
		url: `${config.API_URL}/task/updateTask`,
		name: "修改评论",
		post: async function(data){
			return await http.post(this.url, data);
		}
	},
	detail: {
		url: `${config.API_URL}/task/getTaskDetail`,
		name: "单评论基本信息",
		get: async function(params){
			return await http.get(this.url, params);
		}
	},
	list: {
		url: `${config.API_URL}/comment/getComment`,
		name: "评论列表",
		get: async function(params){
			return await http.get(this.url, params);
		}
	},
	delete: {
		url: `${config.API_URL}/comment/deleteComment`,
		name: "删除评论",
		get: async function(params){
			return await http.get(this.url, params);
		}
	}
}
